<!DOCTYPE html>

<body>
    <table border="1" cellpadding="4" cellspacing="0">
        <thead>
            <tr>
                <th>变量名</th>
                <th>单位</th>
                <th>范围</th>
                <th>精度</th>
                <th>地址</th>
                <th>变量类型</th>
            </tr>
        </thead>
        <tbody>
            {% for item in data %}
                {% if item.inform %}
                    {% include "analysevar_tr.html" with name=item.name unit=item.inform.0 lobound=item.inform.1 hibound=item.inform.2 accu=item.inform.3 addr=item.inform.4 type=item.inform.5 comment=item.inform.6 bgcolor=item.color%}
                {% elif item.type == DELETE %}
                    <tr style="background-color:{{item.color}}"><td><b>{{item.name}}</b></td><td colspan="5"><b>已删除</b></td></tr>
                {% elif item.type == NOFOUND %}
                    <tr style="background-color:{{item.color}}"><td><b>{{item.name}}</b></td><td colspan="5"><b>没找到</b></td></tr>
                {% endif %}
            {% endfor %}
        </tbody>
    </table>
</body>